﻿////////////
//  Maps  //
////////////

namespace Strom.Core.Maps
{
    public class MapDatas
    {
        // Configuration générale de la map
        public string Name { get; set; }
        public byte Type { get; set; }

        // Téléportations de bord de map
        public int MapTop { get; set; }
        public int MapLeft { get; set; }
        public int MapRight { get; set; }
        public int MapBottom { get; set; }

        // Mapping
        public MapCell[,] Cells = new MapCell[31,31];

        public MapDatas()
        {
            Cells = new MapCell[31, 31];
            for (byte x = 0; x < 31; x++)
            {
                for (byte y = 0; y < 31; y++)
                {
                    Cells[x,y] = new MapCell();
                    Name = "";
                    Type = 0;

                    MapTop = 0;
                    MapLeft = 0;
                    MapRight = 0;
                    MapBottom = 0;

                    Cells[x, y].Sol = new GroundLayer {TilesNum = "tiles9.png", TilesX = 0, TilesY = 0};

                    for (byte i = 0; i <3; i++)
                    {
                        Cells[x, y].Inf[i] = new DownLayer {TilesNum = "", TilesX = 0, TilesY = 0};
                        Cells[x, y].Sup[i] = new UpLayer {TilesNum = "", TilesX = 0, TilesY = 0};
                    }
                }
            }
        }
    }
}
